#include <bits/stdc++.h>
using namespace std; 
int a[1111111] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6};
int main(){
	int n, ans = 0;
	cin >> n;
	for(int i = 0; i <= 9; i++)
		for(int j = 0; j <= 9; j++)
		{
			if(a[i] + a[j] + a[i+j] + 4 == n){
				ans++;
				cout << i << " + " << j << " = " << i+j << endl;	
			}
		}
	cout << ans << endl;
	return 0;
}